#pragma once

namespace DirectUI
{
	class CUIUtilityHelper
	{
	public:
		CUIUtilityHelper(void);
		~CUIUtilityHelper(void);

		static int					ParseInt(LPCTSTR lpszValue);
		static double				ParseDouble(LPCTSTR lpszValue);
		static void					ParseRect(LPCTSTR lpszValue, CRect& rcOut);
		static UITIMESPAN			ParseTimeSpan(LPCTSTR lpszValue);
		static UICOLOR				ParseColor(LPCTSTR lpszValue);
		static UIAlign				ParseAlign(LPCTSTR lpszValue);
		static UIImageStretchMode	ParseImageStretchMode(LPCTSTR lpszValue);
		static CRect				GetWorkAreaRect();
		static CRect				CommonLayout(IUIElement* lpElement);
		static HBITMAP				CreateAlphaChannelBitmap(int nWidth, int nHeight);
		static Gdiplus::RectF		RectToRectF(RECT rc);
		static double				NanosecondToSeconds(double dur);
		static double				SecondsToNanosecond(double dur);
	};
};
